package com.lixin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lixin.entity.GroupInfo;
import com.lixin.entity.GroupMember;
import com.lixin.model.response.Response;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lixin
 * @since 2023-08-08
 */
public interface IGroupInfoService extends IService<GroupInfo> {

    GroupInfo createGroup(Integer userId);

    GroupMember joinGroup(Integer userId, Integer groupId);

    GroupInfo selectById(Integer groupId);

    Boolean isInGroup(Integer groupId, Integer userId);

    Set<Object> getGroupMember(Integer groupId);

    Boolean isAdmin(Integer userId);

    Integer deleteByGroupId(Integer groupId);
}
